package com.liang.design;

import org.itstack.demo.design.HandlerInterceptor;

/**
 * @author lsm
 * @ClassName SsoDecorator.java
 * @Description TODO
 * @createTime 2023年12月04日 20:20:00
 */
public class SsoDecorator implements HandlerInterceptor {

    private HandlerInterceptor handlerInterceptor;
    private SsoDecorator(){}
    public SsoDecorator(HandlerInterceptor handlerInterceptor) {
        this.handlerInterceptor = handlerInterceptor;
    }
    @Override
    public boolean preHandle(String request, String response, Object handler) {
        return handlerInterceptor.preHandle(request,response,handler);
    }
}
